package com.boo.app;

import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.widget.Button;
import android.view.View;
import android.net.Uri;
import android.content.Intent;

public class appStyle extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.style);
       
        Button button1 = (Button)findViewById(R.id.button1);
        Drawable alpha1 = button1.getBackground();
        alpha1.setAlpha(20); //알파값 20
        
        Button button2 = (Button)findViewById(R.id.button2);
        Drawable alpha2 = button2.getBackground();
        alpha2.setAlpha(20); //알파값 20
        
       
        Button button3 = (Button)findViewById(R.id.button3);
        Drawable alpha3 = button3.getBackground();
        alpha3.setAlpha(20); //알파값 20
        
        Button button4 = (Button)findViewById(R.id.button4);
        Drawable alpha4 = button4.getBackground();
        alpha4.setAlpha(20); //알파값 20
        
        Button button5 = (Button)findViewById(R.id.button5);
        Drawable alpha5 = button5.getBackground();
        alpha5.setAlpha(20); //알파값 20
        
        Button button6 = (Button)findViewById(R.id.button6);
        Drawable alpha6 = button6.getBackground();
        alpha6.setAlpha(20); //알파값 20
        
        
        button1.setOnClickListener(
        	      new View.OnClickListener(){
        	       public void onClick(View v){
        	           Intent i=new Intent(Intent.ACTION_VIEW,
        	                Uri.parse("http://www.bambistory.com"));
        	              startActivity(i);
        	         }        
        	      });    
        button2.setOnClickListener(
      	      new View.OnClickListener(){
      	       public void onClick(View v){
      	           Intent i=new Intent(Intent.ACTION_VIEW,
      	                Uri.parse("http://www.twofish.co.kr"));
      	              startActivity(i);
      	         }        
      	      });    
        button3.setOnClickListener(
      	      new View.OnClickListener(){
      	       public void onClick(View v){
      	           Intent i=new Intent(Intent.ACTION_VIEW,
      	                Uri.parse("http://www.littlesmile.co.kr"));
      	              startActivity(i);
      	         }        
      	      });    
        button4.setOnClickListener(
        	      new View.OnClickListener(){
        	       public void onClick(View v){
        	           Intent i=new Intent(Intent.ACTION_VIEW,
        	                Uri.parse("http://www.hayangirin.com"));
        	              startActivity(i);
        	         }        
        	      });    
        button5.setOnClickListener(
        	      new View.OnClickListener(){
        	       public void onClick(View v){
        	           Intent i=new Intent(Intent.ACTION_VIEW,
        	                Uri.parse("http://www.bambina.kr"));
        	              startActivity(i);
        	         }        
        	      });    
        button6.setOnClickListener(
        	      new View.OnClickListener(){
        	       public void onClick(View v){
        	           Intent i=new Intent(Intent.ACTION_VIEW,
        	                Uri.parse("http://www.ruirui.co.kr"));
        	              startActivity(i);
        	         }        
        	      });    


    }
}